import subprocess

commond = "../bin/cdn"
in_file = "../../case_example/s/3/case"
out_file = "../result/ans"

for i in range(8):
    str_num = str(i)
    file1 = in_file + str_num + ".txt"
    file2 = out_file + str_num + ".txt"
    #subprocess.call([commond, file1, file2])
    print "%s %s %s" %(commond, file1, file2)
    subprocess.call([commond, file1, file2])
